<?php

return array(
	'router' => array(
		'routes' => array(
			'hello' => array(
				'class' => 'nRouteRegex',
				'options' => array(
					'regex' => '#^/hello/([^/]+)$#',
					'pattern' => '/hello/{1}',
					'callback' => array('Home', 'hello')
				)
			),
			'write' => array(
				'class' => 'nRouteRegex',
				'options' => array(
					'regex' => '#^/write/(\d+)/([^/]+)$#',
					'pattern' => '/write/{1}/{2}',
					'callback' => array('Data', 'write')
				)
			),
			'read' => array(
				'class' => 'nRouteRegex',
				'options' => array(
					'regex' => '#^/read/(\d+)$#',
					'pattern' => '/read/{1}',
					'callback' => array('Data', 'read')
				)
			),
			'index' => array(
				'class' => 'nRouteRegex',
				'options' => array(
					'regex' => '#^/$#',
					'pattern' => '/',
					'callback' => array('Home', 'index')
				)
			)
		)
	),

	'includeDirs' => array(
		'%DIR_APP%/controller'
	)
);